/*
 * Copyright 2025 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.alibaba.cloud.ai.manus.cron.vo;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Cron task configuration VO class
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CronConfig {

  private Long id;

  private String cronName;

  private String cronTime; // Scheduled task time, cron expression

  private String planDesc; // Plan to execute

  private Integer status;

  private String createTime;

  private String planTemplateId;

  private LocalDateTime lastExecutedTime; // Last execution time

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getCronName() {
    return cronName;
  }

  public void setCronName(String cronName) {
    this.cronName = cronName;
  }

  public String getCronTime() {
    return cronTime;
  }

  public void setCronTime(String cronTime) {
    this.cronTime = cronTime;
  }

  public String getPlanDesc() {
    return planDesc;
  }

  public void setPlanDesc(String planDesc) {
    this.planDesc = planDesc;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  public LocalDateTime getLastExecutedTime() {
    return lastExecutedTime;
  }

  public void setLastExecutedTime(LocalDateTime lastExecutedTime) {
    this.lastExecutedTime = lastExecutedTime;
  }

  public String getPlanTemplateId() {
    return planTemplateId;
  }

  public void setPlanTemplateId(String planTemplateId) {
    this.planTemplateId = planTemplateId;
  }

}
